Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introducing simple role based access #154

Merged
merged 1 commit into from
Mar 5, 2024
Merged

Conversation

siinghd
Copy link
Collaborator

@siinghd siinghd commented Mar 4, 2024

This pr introduces simple role based access that can be improved further.

Role based access will allow us to improve the admin dashboard and render components/tags based on the role in the session.

How it works:

Add ADMINS field in .env, like in the example:

ADMINS = "Random,[email protected],..."

on login it does check if the current user is included in the admin list

Copy link

netlify bot commented Mar 4, 2024

👷 Deploy request for charming-semolina-f274cf pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit a95f23a

Copy link

vercel bot commented Mar 4, 2024

@siinghd is attempting to deploy a commit to the My Team Team on Vercel.

A member of the Team first needs to authorize it.

@hkirat hkirat merged commit 41193cd into code100x:main Mar 5, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants